/**
 * @author zyj
 * @date 2022年06月10日 11:22
 */
public class Waiter extends Thread{

    private KFC kfc;


    public Waiter(String name,KFC kfc){
        super(name);
        this.kfc = kfc;
    }

    @Override
    public void run() {
        while (true){
            kfc.prod();
            try {
                Thread.sleep(20);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
